package cn.itsource.ymcc.service.imp;

import cn.itsource.repository.CourseRespository;
import cn.itsource.ymcc.service.ICourseService;
import cn.itsource.ymcc.doc.CourseDoc;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CourseServiceImpl implements ICourseService {

    @Autowired
    private CourseRespository courseRespository;

    @Override
    public void online(CourseDoc courseDoc) {
        courseRespository.save(courseDoc);
        System.out.println("课程上线");
    }
}
